package cartagows.wsframework.wsatomictransaction;

import java.io.Serializable;

import cartago.CartagoException;
import cartagows.wsframework.core.FrameworkIDValidator;
import cartagows.wsframework.core.IOperation;

public class WSAtomicTransactionOperation implements IOperation,Serializable{

	private static final long serialVersionUID = 1L;
	
	public static final int VALIDATE_AT_CONTEXT = 1;

	private int operationID;
	
	public WSAtomicTransactionOperation(int operationID) throws CartagoException{

		if(FrameworkIDValidator.getInstance().validateOperation(WSAtomicTransactionOperation.class, operationID))
		{
			this.operationID = operationID;
		}
		else
			throw new CartagoException();
	}
	
 	public int getSpecificationID() {
		return IOperation.WS_ATOMIC_TRANSACTION;
	}
	
	public String getSpecificationDescription() {

		return "Class that contains all the operation relates to the WS-AtomicTransaction specification";
	}
	
	public int getOperationID(){
		return this.operationID;
	}
}